add_library(hcom_gradient_split_tune  SHARED
    ${CMAKE_CURRENT_SOURCE_DIR}/src/gradient_split_tune.cc
)

target_compile_options(hcom_gradient_split_tune  PRIVATE
    -Werror
	-Wall
	-fno-common
	-fno-strict-aliasing
	-pipe
)

#头文件搜索路径
target_include_directories(hcom_gradient_split_tune  PRIVATE
    ${TOP_DIR}/inc
    ${TOP_DIR}/inc/toolchain
    ${TOP_DIR}/libc_sec/include
    ${TOP_DIR}/metadef/inc/common/util
    ${TOP_DIR}/metadef/inc/external
    ${TOP_DIR}/open_source/json/include
    ${CMAKE_CURRENT_SOURCE_DIR}/inc
)

target_link_libraries(hcom_gradient_split_tune   PRIVATE
    $<BUILD_INTERFACE:intf_pub>
    $<BUILD_INTERFACE:slog_headers>
    $<BUILD_INTERFACE:hccl_headers>
    -Wl,--no-as-needed
    slog
    platform
    c_sec
    -Wl,--as-needed
)

install(TARGETS hcom_gradient_split_tune
    LIBRARY DESTINATION lib  OPTIONAL
)

